package com.car.dal.dao.survey;

import java.util.List;

import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.TgSatisSurvey;
import com.car.util.Page;

public class SatisSurveyDaoImp extends IbatisCommonDao<TgSatisSurvey, Long> implements SatisSurveyDao{

	@Override
	public List<TgSatisSurvey> getSatisSurveyByType(TgSatisSurvey satisSurvey,Page page) {
		satisSurvey.setFirstrownum(page.getFirstrownum());
		satisSurvey.setPagesize(page.getPagesize());
		return this.queryForEntityList(TgSatisSurvey.class, "getSatisSurveyByType", satisSurvey);
	}

	@Override
	public Integer getCountSatisSurveyByType(TgSatisSurvey satisSurvey) {
		return this.queryForInteger("getCountSatisSurveyByType", satisSurvey);
	}

	@Override
	public List<TgSatisSurvey> getSatisSurveyByType1(TgSatisSurvey satisSurvey) {
		return this.queryForEntityList(TgSatisSurvey.class, "getSatisSurveyByType1", satisSurvey);
	}

}
